package com.example.coder_voucher.exception;

public class VoucherNotFoundException extends RuntimeException {
    
    public VoucherNotFoundException(String message) {
        super(message);
    }
    
    public VoucherNotFoundException(String message, Throwable cause) {
        super(message, cause);
    }
    
    public static VoucherNotFoundException byCode(String code) {
        return new VoucherNotFoundException("Voucher not found with code: " + code);
    }
    
    public static VoucherNotFoundException byId(Long id) {
        return new VoucherNotFoundException("Voucher not found with id: " + id);
    }
}